﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace CotizacionPresencialPaquetes
{
    public class HtmlHelper
    {
        public static string EncodeTildes(string texto)
        {

            return texto.Replace("Ñ", "&Ntilde;").Replace("ñ", "&ntilde;").Replace("á", "&aacute;").Replace("é", "&eacute;").Replace("í", "&iacute;").Replace("ó", "&oacute;").Replace("ú", "&uacute;").Replace("Á", "&Aacute;").Replace("É", "&Eacute;").Replace("Í", "&Iacute;").Replace("Ó", "&Oacute;").Replace("Ú", "&Uacute;");
        }
    }
}